﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Newtonsoft.Json;

namespace Toggl.PhoneClient.Domain
{
    public class PlannedTask
    {
        [JsonProperty(PropertyName = "id")]
        public int Id { get; set; }

        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        [JsonProperty(PropertyName = "workspace")]
        public Workspace Workspace { get; set; }

        [JsonProperty(PropertyName = "project")]
        public Project Project { get; set; }

        [JsonProperty(PropertyName = "user")]
        public User User { get; set; }

        [JsonProperty(PropertyName = "estimated_workhours")]
        public decimal EstimatedWorkHours { get; set; }

        public override bool Equals(object obj)
        {
            return this.Id == (obj as PlannedTask).Id;
        }
    }
}
